package com.baiyun.service;

import com.baiyun.domain.User;
import com.baiyun.domain.UserDTO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 20516
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2022-06-17 21:39:33
*/
public interface UserService extends IService<User> {

    User getByUsername(String username);

    String getUserAuthority(Long id);

    void clearUserAuthority(String username);

    void clearUserAuthorityByRoleId(Long roleId);

    void clearUserAuthorityByMenuId(Long menuId);

    int updateUser(UserDTO userDTO);
}
